package org.wyl.job51.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wyl.job51.component.JobSpiderStarter;

@RestController
@RequestMapping("/")
public class Job51Controller {

    @Autowired
    private JobSpiderStarter jobSpiderStarter;

    @GetMapping("/crawler")
    public String doCrawler(){
        jobSpiderStarter.start();
        return "OK";
    }
}